package com.shenluyao.service;
import com.shenluyao.dao.FpsPerUserMapper;
import com.shenluyao.model.FpsPerUser;
import com.shenluyao.model.FpsPerUserArg;
import com.shenluyao.model.SystUserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;
/**
 * @author Admin
 * @Description: ${todo}类的作用
 * @date 2018/11/16 9:42
 */
@Service
public class FpsPerUserService {
    @Autowired
    private FpsPerUserMapper fpsPerUserMapper;

    public FpsPerUser getFpsPerUser(String userId){
        return fpsPerUserMapper.selectByPrimaryKey(userId);
    }

    public List<FpsPerUserArg> findFpsPerUser(FpsPerUserArg fpsPerUserArg) {
        return fpsPerUserMapper.findFpsPerUser(fpsPerUserArg);
    }

    public  int deleteByPrimaryKey(String id){
        return  fpsPerUserMapper.deleteByPrimaryKey(id);
    };

    public int insert(FpsPerUserArg record){
        return  fpsPerUserMapper.insert(record);
    };

    public int insertSelective(FpsPerUserArg record){
        return fpsPerUserMapper.insertSelective(record);
    };

    public FpsPerUser selectByPrimaryKey(String id){
        return fpsPerUserMapper.selectByPrimaryKey(id);
    };

    public int updateByPrimaryKeySelective(FpsPerUserArg record){
       return fpsPerUserMapper.updateByPrimaryKeySelective(record);
    };

    public int updateByPrimaryKey(FpsPerUser record){
        return fpsPerUserMapper.updateByPrimaryKey(record);
    };

    public int createSystUserInfoById(SystUserInfo systUserInfo){
        return fpsPerUserMapper.createSystUserInfoById(systUserInfo);
    }

    public int updateSystUserInfoById(SystUserInfo systUserInfo){
        return fpsPerUserMapper.updateSystUserInfoById(systUserInfo);
    }
    public int deleteByNames(FpsPerUserArg fpsPerUserArg){
        return fpsPerUserMapper.deleteByNames(fpsPerUserArg);
    }
}
